<template>
      <div class="haveorder">
      <div class="haveorderfor" v-for="(haveorder,take) in haveorder" :key="take">
       <div class="haveorderHand">
        <div class="haveorderDepart">
          <p class="haveorderDeparttitle">始发地</p>
          <p class="haveorderDepartsite">{{haveorder.depart}}</p>
          <p class="haveorderDepartdetail">{{haveorder.departregion}}</p>
        </div>
        <div class="carriage">
            <p class="carriageify">空运</p>
            <img src="../assets/images/go.png">
            <p class="stockpile">需冷藏</p>
        </div>
        <div class="haveorderDestination">
            <p  class="Destinationtitle">目的地</p>
            <p class="Destinationsite">{{haveorder.destination}}</p>
            <p class="Destinationdetail">{{haveorder.destinationregion}}</p>
        </div>
        </div>
        <div class="indetail">
            <span class="infotitle">详</span>
            <span class="info">{{haveorder.indetail}}</span>
        </div>
        <div class="message">
            <span class="messagetitle">重量</span><span class="messageconten">{{haveorder.weight}}</span>
            <span class="messagetitle">运费</span><span class="messageconten">{{haveorder.freight}}</span>
        </div>
        <div class="haveorderodd">
            <span class="oddnum">物流单号：{{haveorder.odd}}</span>
            <span class="copy">复制</span>
        </div>
        <div class="haveorderBnt">
            <van-button color="#00C657" class="sub">指派司机</van-button>
        </div>
      </div>
  </div>
</template>

<script>
export default {
    name: "haveOrder",
    props:{
        haveorder:{
            type:Array,
            default:[]
        }
    },
}
</script>

<style scoped>
.haveorder{
    margin-top: 11px;
}
.haveorderfor{
    margin-top: 11px;
}
.haveorderHand{
    display: flex;
}
.carriage img{
    width: 76px;
    height: 5px;
    vertical-align: middle;
    margin-left: 37px;
}
.haveorderDeparttitle{
    font-size:10px;
    font-family:PingFang SC;
    font-weight:500;
    color:rgba(169,174,192,1);
    margin-top: 15px;
    margin-left:67px;
}
.haveorderDepartsite{
    font-size:18px;
    font-family:PingFang SC;
    font-weight:bold;
    color:rgba(51,51,51,1);
    margin-left: 56px;
    margin-top: 12px;
}
.haveorderDepartdetail{
    font-size:12px;
    font-family:PingFang SC;
    font-weight:500;
    color:rgba(169,174,192,1);
    margin-left:67px;
}
.carriageify{
    font-size:12px;
    font-family:PingFang SC;
    font-weight:500;
    color:rgba(0,198,87,1);
    margin-left: 67px;
    margin-top: 5px;
}
.stockpile{
    font-size:12px;
    font-family:PingFang SC;
    font-weight:500;
    color:rgba(255,98,0,1);
    margin-left: 60px;
}
.Destinationtitle{
    font-size:10px;
    font-family:PingFang SC;
    font-weight:500;
    color:rgba(169,174,192,1);
    margin-left: 39px;
    margin-top: 15px;
}
.Destinationsite{
    font-size:18px;
    font-family:PingFang SC;
    font-weight:bold;
    color:rgba(51,51,51,1);
    margin-top: 12px;
    margin-left: 30px;
}
.Destinationdetail{
    font-size:12px;
    font-family:PingFang SC;
    font-weight:500;
    color:rgba(169,174,192,1);
    margin-left: 39px;
}
.indetail{
    text-align: center;
    margin-top: 18px;
}
.infotitle{
    background:rgba(0,198,87,1);
    border-radius:50%;
    color: #fff;
    padding: 3px;

}
.info{
    font-size:12px;
    font-family:PingFang SC;
    font-weight:500;
    color:rgba(51,51,51,1);
}
.message{
    display: flex;
    text-align: center;
    margin-top: 25px;
}
.messagetitle{
    font-size:10px;
    font-family:PingFang SC;
    font-weight:bold;
    color:rgba(169,174,192,1);
    word-wrap: break-word;
    flex: 0.5;
}
.messageconten{
    font-size:12px;
    font-family:PingFang SC;
    font-weight:bold;
    color:rgba(255,98,0,1);
    word-wrap: break-word;
    word-break: normal;
    flex: 0.5;
}
.haveorderodd{
    margin-top: 20px;
    margin-left: 35px;
}
.oddnum{
    font-size:12px;
    font-family:PingFang SC;
    font-weight:500;
    color:rgba(169,174,192,1)
}
.copy{
    border:1px solid rgba(0,198,87,1);
    border-radius:3px;
    color: rgba(0,198,87,1);
    font-size: 10px;
}
.haveorderBnt{
    text-align: center;
}
.sub{
    width:281px;
    height:45px;
    margin: 16px 15px;
}
</style>